
class rgbcolor:
    def __init__(self, r, g, b):
        self.r = r
        self.g = g
        self.b = b

class hsvcolor:
    def __init__(self, h, s, v):
        self.h = h
        self.s = s
        self.v = v
    def __str__(self):
        return f"{self.h:.4f},{self.s*100.0:.4f}%,{self.v*100.0:.4f}%"

def rgb2hsv(rgb: rgbcolor) -> hsvcolor:
    r, g, b = rgb.r/255.0, rgb.g/255.0, rgb.b/255.0
    max_val = max(r, g, b)
    min_val = min(r, g, b)
    delta = max_val - min_val
    if delta == 0:
        h = 0
    elif max_val == r:
        h = (60 * ((g - b) / delta) + 360) % 360
    elif max_val == g:
        h = (60 * ((b - r) / delta) + 120) % 360
    else:
        h = (60 * ((r - g) / delta) + 240) % 360
    s = 0 if max_val == 0 else delta / max_val
    v = max_val
    return hsvcolor(h, s, v)

if __name__ == '__main__':
    r = int(input())
    g = int(input())
    b = int(input())
    rgb = rgbcolor(r, g, b)
    hsv = rgb2hsv(rgb)
    print(hsv)


